<cfinclude template="settings.cfm">

<cfset linkCommenterID = '#checkForRegistered.commenterID#'>
<cfset commentPreApprove = '#checkForRegistered.approved#'>
<cfset returnMessage = "<b>Comment added successfully. Thanks!</b>">

<cfset re1='(")'>
<cfset re2='.*?'>
<cfset re3="('')">
<cfset re4='.*?'>
<cfset re5='(\\)'>

<cfset regularExpression = #re1#&#re2#&#re3#&#re4#&#re5#&#re6#>

<cfset replacedComment = REReplace('theComment','regularExpression','ALL')>
            
<cfquery name="postComment" datasource="#fSDS#">
INSERT INTO comments VALUES  (NULL,'#linkCommenterID#','#name#','#website#','#theComment#','#postID#','#TimeFormat(now())#','#DateFormat(now())#','#commentPreApprove#')
</cfquery>

<cfinclude template="footer.cfm">